#include "customrelationaltablemodel.h"

CustomRelationalTableModel::CustomRelationalTableModel(QObject *parent) :
    QSqlRelationalTableModel(parent)
{
}
Qt::ItemFlags CustomRelationalTableModel::flags(
        const QModelIndex &index) const
{
    Qt::ItemFlags flags = QSqlRelationalTableModel::flags(index);
    if (index.column() == 0)
        flags &= !Qt::ItemIsEditable;
    return flags;
}
